class FruitMediator implements Mediator {
    private final Factory factory = new Factory();

    @Override
    public Fruit requestFruit(String type) {
        System.out.println("Mediator processing " + type + " request");
        return factory.createFruit(type);
    }
}